:root {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #213547;
  background-color: #f8f8f8;
}

body {
  margin: 0;
  padding: 0;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

header nav {
  display: flex;
  gap: 15px;
}

button {
  background-color: #0078d4;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
}

/* Ensure proper spacing between action buttons */
.key-value-table button {
  margin-right: 8px;
  margin-left: 0;
}

.key-value-table button:last-child {
  margin-right: 0;
}

button:hover {
  background-color: #106ebe;
}

.delete-button {
  background-color: #d13438;
}

.delete-button:hover {
  background-color: #b92e32;
}

.cancel-button {
  background-color: #6e6e6e;
}

.key-value-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.key-value-table th,
.key-value-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.key-value-table th {
  background-color: #f0f0f0;
  font-weight: 600;
}

/* Ensure Actions column has minimum width and proper spacing */
.key-value-table th:last-child,
.key-value-table td:last-child {
  min-width: 200px;
  white-space: nowrap;
}

/* Limit the width of Value and Content Type columns */
.value-cell {
  max-width: 300px;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-type-cell {
  max-width: 200px;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tags display in table cells */
.key-value-table .tags-display {
  max-height: 60px;
  overflow-y: auto;
  max-width: 250px;
}

.key-value-table .tag-display {
  background: #e9ecef;
  color: #495057;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 11px;
  white-space: nowrap;
}

.key-value-table .no-tags {
  color: #6c757d;
  font-style: italic;
  font-size: 12px;
}

.key-value-table .more-tags {
  background: #d1ecf1 !important;
  color: #0c5460 !important;
  font-weight: 500;
}

.filters {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 500;
}

input, textarea {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.key-value-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.tag {
  background-color: #f0f0f0;
  padding: 5px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.remove-tag {
  background: none;
  border: none;
  color: #666;
  margin-left: 8px;
  cursor: pointer;
  font-size: 16px;
}

.add-tag {
  display: flex;
  gap: 8px;
}

.error-message {
  background-color: #fde7e9;
  color: #d13438;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.load-more-button {
  background-color: transparent;
  color: #0078d4;
  border: 1px solid #0078d4;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin: 0;
}

.load-more-button:hover:not(:disabled) {
  background-color: rgba(0, 120, 212, 0.1);
}

.load-more-button:disabled {
  background-color: #6e6e6e;
  cursor: not-allowed;
}

/* Revisions Component Styles */
.key-value-revisions {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.revisions-header {
  margin-bottom: 30px;
}

.revisions-header h2 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.8em;
  font-weight: 600;
}

.key-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 14px;
}

.key-info-large {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 25px;
  font-size: 18px;
  font-weight: 500;
}

.view-revisions-button {
  background-color: #107c10;
  margin-left: 5px;
}

.view-revisions-button:hover {
  background-color: #0e6e0e;
}

.no-revisions {
  text-align: center;
  padding: 40px;
  color: #6c757d;
  font-size: 16px;
}

.tags-display {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-display {
  background: #e9ecef;
  color: #495057;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 11px;
  white-space: nowrap;
}